FROM python:3.8-alpine
WORKDIR /app
RUN apk update  && apk add --no-cache gcc libffi-dev musl-dev linux-headers && rm -rf /var/cache/apk/*
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
# COPY ./api/*.py ./api/
# COPY ./littleshinserver/*.py ./littleshinserver/
COPY ./main.py ./
CMD ["python", "-m", "uvicorn", "main:app", "--host=0.0.0.0"]